<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <rich:panel>
        <f:facet name="header">Solicitacaomudanca Details</f:facet>


        <s:decorate id="dataabertura" template="layout/display.xhtml">
            <ui:define name="label">Dataabertura</ui:define>
            <h:outputText value="#{solicitacaomudancaHome.instance.dataabertura}">
                <s:convertDateTime type="both" dateStyle="short"/>
            </h:outputText>
        </s:decorate>

        <s:decorate id="datafechamento" template="layout/display.xhtml">
            <ui:define name="label">Datafechamento</ui:define>
            <h:outputText value="#{solicitacaomudancaHome.instance.datafechamento}">
                <s:convertDateTime type="both" dateStyle="short"/>
            </h:outputText>
        </s:decorate>

        <s:decorate id="descricao" template="layout/display.xhtml">
            <ui:define name="label">Descricao</ui:define>
            <h:outputText value="#{solicitacaomudancaHome.instance.descricao}"/>
        </s:decorate>

        <s:decorate id="justificativa" template="layout/display.xhtml">
            <ui:define name="label">Justificativa</ui:define>
            <h:outputText value="#{solicitacaomudancaHome.instance.justificativa}"/>
        </s:decorate>

        <s:decorate id="titulo" template="layout/display.xhtml">
            <ui:define name="label">Titulo</ui:define>
            <h:outputText value="#{solicitacaomudancaHome.instance.titulo}"/>
        </s:decorate>

        <div style="clear:both"/>

    </rich:panel>

    <div class="actionButtons">

        <s:button view="/SolicitacaomudancaEdit.xhtml"
                    id="edit"
                 value="Edit"/>

        <s:button view="/#{empty solicitacaomudancaFrom ? 'SolicitacaomudancaList' : solicitacaomudancaFrom}.xhtml"
                    id="done"
                 value="Done"/>

    </div>

    <rich:tabPanel switchType="ajax">

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Statusmudanca</h:panelGroup>
        </f:facet>
    <div class="association" id="statusmudancaParent">

        <h:outputText value="There is no statusmudanca associated with this solicitacaomudanca."
                   rendered="#{solicitacaomudancaHome.instance.statusmudanca == null}"/>

        <rich:dataTable var="_statusmudanca"
                   value="#{solicitacaomudancaHome.instance.statusmudanca}"
                rendered="#{solicitacaomudancaHome.instance.statusmudanca != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="statusmudancaTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_statusmudanca.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_statusmudanca.nome}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewstatusmudanca"
                     value="View"
                      view="/Statusmudanca.xhtml">
                    <f:param name="statusmudancaId"
                           value="#{_statusmudanca.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Projeto</h:panelGroup>
        </f:facet>
    <div class="association" id="projetoParent">

        <h:outputText value="There is no projeto associated with this solicitacaomudanca."
                   rendered="#{solicitacaomudancaHome.instance.projeto == null}"/>

        <rich:dataTable var="_projeto"
                   value="#{solicitacaomudancaHome.instance.projeto}"
                rendered="#{solicitacaomudancaHome.instance.projeto != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="projetoTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_projeto.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Statusprojeto id</f:facet>
                <h:outputText value="#{_projeto.statusprojeto.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Usuario id</f:facet>
                <h:outputText value="#{_projeto.usuario.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Cliente</f:facet>
                <h:outputText value="#{_projeto.cliente}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Custoprevisto</f:facet>
                <h:outputText value="#{_projeto.custoprevisto}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Datacriacao</f:facet>
                <h:outputText value="#{_projeto.datacriacao}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Fim</f:facet>
                <h:outputText value="#{_projeto.fim}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Fimprevisto</f:facet>
                <h:outputText value="#{_projeto.fimprevisto}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Inicio</f:facet>
                <h:outputText value="#{_projeto.inicio}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Justificativa</f:facet>
                <h:outputText value="#{_projeto.justificativa}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Necessidades</f:facet>
                <h:outputText value="#{_projeto.necessidades}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_projeto.nome}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Orcamento</f:facet>
                <h:outputText value="#{_projeto.orcamento}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Premissas</f:facet>
                <h:outputText value="#{_projeto.premissas}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Produto</f:facet>
                <h:outputText value="#{_projeto.produto}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Responsabilidadesgp</f:facet>
                <h:outputText value="#{_projeto.responsabilidadesgp}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Restricoes</f:facet>
                <h:outputText value="#{_projeto.restricoes}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Resumo</f:facet>
                <h:outputText value="#{_projeto.resumo}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewprojeto"
                     value="View"
                      view="/Projeto.xhtml">
                    <f:param name="projetoId"
                           value="#{_projeto.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>

    <rich:tab>
        <f:facet name="label">
            <h:panelGroup><h:graphicImage value="/img/manytoone.gif" style="vertical-align: middle; padding-right: 4px;"/>Usuario</h:panelGroup>
        </f:facet>
    <div class="association" id="usuarioParent">

        <h:outputText value="There is no usuario associated with this solicitacaomudanca."
                   rendered="#{solicitacaomudancaHome.instance.usuario == null}"/>

        <rich:dataTable var="_usuario"
                   value="#{solicitacaomudancaHome.instance.usuario}"
                rendered="#{solicitacaomudancaHome.instance.usuario != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="usuarioTable">
            <h:column>
                <f:facet name="header">Id</f:facet>
                <h:outputText value="#{_usuario.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Ddd</f:facet>
                <h:outputText value="#{_usuario.ddd}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Email</f:facet>
                <h:outputText value="#{_usuario.email}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Endereco</f:facet>
                <h:outputText value="#{_usuario.endereco}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Gp</f:facet>
                <h:outputText value="#{_usuario.gp}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Login</f:facet>
                <h:outputText value="#{_usuario.login}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Nome</f:facet>
                <h:outputText value="#{_usuario.nome}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Senha</f:facet>
                <h:outputText value="#{_usuario.senha}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Telefone</f:facet>
                <h:outputText value="#{_usuario.telefone}"/>
            </h:column>
            <h:column styleClass="action">
                <f:facet name="header">Action</f:facet>
                <s:link id="viewusuario"
                     value="View"
                      view="/Usuario.xhtml">
                    <f:param name="usuarioId"
                           value="#{_usuario.id}"/>
                </s:link>
            </h:column>
        </rich:dataTable>

    </div>
    </rich:tab>
</rich:tabPanel>
</ui:define>

</ui:composition>
